#pragma once
#include "Vector3.h"
#include "GameObject.h"

#include "SellPos.h"

#include <list>
using std::list;

class Sell;
class Shooter;
class Block;
class SellArray;
typedef list<Sell*> SELL_LIST;
typedef list<Block> BLOCK_LIST;
class Field : public GameObject
{
private:
	SellArray* _sellArray;
	Shooter* _shooter;
	bool _animating;
	long _keyDelay;

	void inKeyUpdate();
	void updateSells();
	void drawForecastBlock();
public:
	void init(int x, int y, int a);
	void display();
	void moveShooter(int x, int y);
	void shootBlock();
	void update();
	void setPosition(Vector3f p);
	Field(void);
	~Field(void);

	short checkResult();
};